<!--
Version 0.1
SEMF - Web Desiging Framework for Sport Event Managment
Copyright (C) 2006, SEMF Developers

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>SEMF Plug ins</title>

<link rel="shortcut icon" href="../icons/semf.ico" />
</head>
<body>
<h1>SEMF Plug-ins</h1>
<?php
$project_home = $_GET['project_home'];

$plugin_home = "./";
$files = array();
$d = dir($plugin_home);
// Loop through all of the files:
$i = 0;
while (false !== ($file = $d->read()))
{
	// If the file is not this file, and does not start with a '.' or '~'
	if ( ($file{0} != '.') &&
		 ($file{0} != '~') &&
		 is_dir($file) )
	{
		if($file == "lib")
		{
			continue; //escape the directory..
		}
		$files[$i++] = $file;
	}
}

foreach($files as $file)
{
	echo "<p><div onmouseover='this.style.backgroundColor=\"#ccccFF\"'
					onmouseout='this.style.backgroundColor=\"#eeeeFF\"'
	onclick='window.location.href=\"".$file."/index.php?project_home=".$project_home."\"'
				 	style='width:80px; height:80px; cursor:pointer;
	text-align:center; background-color:#eeeeFF; border:solid 1px; border-color:#ccccFF;'>
	<br/>
	<img src='${file}/icon.gif'/><br/>
	<a href='".$file."/index.php?project_home=".$project_home."'>".$file."</a>
	</div></p>";
}

?>
</body>
</html>
